package com.marvels.approve.credit.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.marvels.approve.common.service.IUploadFileService;
import com.marvels.approve.credit.service.CreditReportService;
import com.marvels.approve.process.dto.LaAttachAtmeTypeViewDTO;
import com.marvels.common.constants.CaseNodeConstant;
import com.marvels.common.exception.MarvelsBusinessException;

@Service
public class CreditReportServiceImpl implements CreditReportService {
	
	@Autowired
	private IUploadFileService uploadFileService;

	@Override
	public List<LaAttachAtmeTypeViewDTO> getAttachmentsByViewKey(String loanId) throws MarvelsBusinessException {
		/*List<LaAttachAtmeTypeViewDTO> mediaList = uploadFileService.getAttachmentsByViewKey(AttachmentViewKeyConstants.ZX_APPROVE_BEFORE, loanId);*/
		List<LaAttachAtmeTypeViewDTO> mediaList = uploadFileService.getAttachmentsByViewKey(CaseNodeConstant.WOCHECKINGBEFORE.getCode(), loanId);
		
		return mediaList;
	}
}
